import "./home.css"
import { useState,constructor } from "react"


function Home() {
    const [list,setList] = useState([]);
    // const [loading,setLoading] = useState(false);

    constructor((props)=>{
        console.log("生命周期函数");
        // super(props);
        // 不要在这里调用 this.setState()
      });

      const request = ()=>{
        console.log("请求函数");

      }

      request()

    return (
        <div className="home_box">
            {/* <div class="room" v-for="item,i in list" key={i} onClick={roomDetails} >
                <img src="" alt="" />
                <b>{item.room_name}</b>
                <p>{item.nickname}-{item.hn}</p>
            </div> */}
        </div>)
}

export default Home;